from django import template
from string import uppercase

register = template.Library()


@register.simple_tag
def letters():
    """
    Make a list of letters for topics pages.
    """
    return u'<div class="letters">%s</div>' % u' | '.join(
        u'<a class="highlight" href=/topics/?page=%(l)s>%(l)s</a>' % {'l': l}
        for l in uppercase)

    
